#include <iostream>
using namespace std;
void swap(char &s1,char &s2){
    char temp;
    temp=s1;
    s1=s2;
    s2=temp;
}
int main(){
    char s1,s2,s3;
    while (cin>>s1>>s2>>s3)
    {
        if(s1>s2){
            swap(s1,s2);
        }
        if(s1>s3){
            swap(s1,s3);
        }if(s2>s3){
            swap(s2,s3);
        }
        cout<<s1<<" "<<s2<<" "<<s3<<endl;

    }
    
}